using System.Linq.Expressions;
using System.Reflection;
using ef_core_2025_learn.Entity;
using Microsoft.AspNetCore.Identity;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Xunit.Abstractions;

namespace TestProject1;

public class UnitTest1
{


    public string Name { get; set; } = "张三";

    [Fact]
    public void Test1()
    {
        var unitTest1 = new UnitTest1();
        var a = new { unitTest1.Name};
        Console.WriteLine();
    }

    public void Inspect<T, TProp>(Expression<Func<T, TProp>> expr)
    {
        var type = typeof(T);

        MemberInfo memberAccess = expr.GetMemberAccess();
        var memberAccessName = memberAccess.Name;

    }

}